package cn.fsw.pethome.system.domain;


import cn.fsw.pethome.base.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author fsw
 * @since 2022-10-19
 */
@Data
public class Menu extends BaseDomain {

    private static final long serialVersionUID = 1L;

    private String name;
    private String component;
    private String url;
    private String icon;
    private Integer index;
    private Long parent_id;
    private String intro;
    private Integer state;
    /*父级菜单*/
    private Menu menu;
    /*子级菜单*/
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Menu> children = new ArrayList<>();

}
